home *** CD-ROM | disk | FTP | other *** search
/ Software Vault: The Gold Collection / Software Vault - The Gold Collection (American Databankers) (1993).ISO / cdr25 / gnupltpm.zip / TOC_ENTR.STY < prev   
Text File  |  1993-03-08  |  2KB  |  68 lines

  1. %
  2. % $Id: toc_entry.sty,v 3.26 1992/03/25 04:53:29 woo Exp woo $
  3. %
  4. % TOC_ENTRY.STY of 13 Dec 90
  5. % written by Stefan Timphus
  6. %
  7. % Will produce the right space for sectionnumbers in the tableofcontents
  8. % Necessary for entries where the number for each kind of section
  9. % is greater 10 (e.g. "12.14.18 Sectionname")
  10. % When using the original definition the first letter of the sectionname
  11. % overwrites the last number of the sectionnumber
  12. %
  13. % call adjustments with command \adjustSTYLENAME
  14. %
  15.  
  16. \typeout{`toc_entry.sty' 1.0 of 13 Dec 90}
  17.  
  18. %
  19. % HERE ARE THE ORIGINAL DEFINITIONS
  20. %
  21.  
  22. % article.sty
  23. %
  24. %\def\l@subsection{\@dottedtocline{2}{1.5em}{2.3em}}
  25. %\def\l@subsubsection{\@dottedtocline{3}{3.8em}{3.2em}}
  26. %\def\l@paragraph{\@dottedtocline{4}{7.0em}{4.1em}}
  27. %\def\l@subparagraph{\@dottedtocline{5}{10em}{5em}}
  28.  
  29. % report.sty and book.sty
  30. %
  31. %\def\l@section{\@dottedtocline{1}{1.5em}{2.3em}}
  32. %\def\l@subsection{\@dottedtocline{2}{3.8em}{3.2em}}
  33. %\def\l@subsubsection{\@dottedtocline{3}{7.0em}{4.1em}}
  34. %\def\l@paragraph{\@dottedtocline{4}{10em}{5em}}
  35. %\def\l@subparagraph{\@dottedtocline{5}{12em}{6em}}
  36.  
  37. %
  38. % MODIFICATIONS
  39. %
  40.  
  41. \newlength{\twonum}
  42.         \settowidth{\twonum}{99.99.}
  43. \newlength{\threenum}
  44.         \settowidth{\threenum}{99.99.99.}
  45. \newlength{\fournum}
  46.         \settowidth{\fournum}{99.99.99.99.}
  47. \newlength{\fivenum}
  48.         \settowidth{\fivenum}{99.99.99.99.99.}
  49. \newlength{\sixnum}
  50.         \settowidth{\sixnum}{99.99.99.99.99.99.}
  51.  
  52. \newcommand{\adjustarticle}
  53. {\def\l@subsection{\@dottedtocline{2}{1.5em}{\twonum}}
  54. \def\l@subsubsection{\@dottedtocline{3}{4.0em}{\threenum}}
  55. \def\l@paragraph{\@dottedtocline{4}{7.8em}{\fournum}}
  56. \def\l@subparagraph{\@dottedtocline{5}{10.4em}{\fivenum}}}
  57.  
  58. \newcommand{\adjustreport}
  59. {\def\l@section{\@dottedtocline{1}{1.5em}{\twonum}}
  60. \def\l@subsection{\@dottedtocline{2}{4.0em}{\threenum}}
  61. \def\l@subsubsection{\@dottedtocline{3}{7.8em}{\fournum}}
  62. \def\l@paragraph{\@dottedtocline{4}{10.4em}{\fivenum}}
  63. \def\l@subparagraph{\@dottedtocline{5}{12.6em}{\sixnum}}}
  64.  
  65. \newcommand{\adjustbook}{\adjustreport}
  66.  
  67. % end of TOC_ENTRY.STY
  68.